package com.lanou3g.hw0408;

public class Duck {
    private String name;
    private String color;
    private int weight;
    private String gender;

    public Duck(String name, String color, int weight, String gender) {
        this.name = name;
        this.color = color;
        this.weight = weight;
        this.gender = gender;
    }

    public Duck() {
    }

    public void run() {
        System.out.println("这是一个名字叫做" + name + "的颜色为" + color
                + "的体重为" + weight + "g的" + gender+"鸭子");
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public int getWeight() {
        return weight;
    }

    public void setWeight(int weight) {
        this.weight = weight;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }
}

